<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>




<body>

<script>
       var b = [];
       b [0] = "<img src='img/9.jpg' />";
       b [1] = "<img src='img/11.jpg' />";
       b [2] = "<img src='img/4.jpg' />";

       b [3] = "<img src='img/5.jpg' />";

       b [4] = "<img src='img/6.jpg' />";

       b [5] = "<img src='img/7.jpg' />";

       b [6] = "<img src='img/8.jpg' />";

       b [7] = "<img src='img/10.jpg' />";

       var t = ["", "", "", ""];

       function getRandom(b, t, count) {
           var arr = [];
           for (let i = 0; i < count; i++) {
               let pool = b[Math.floor(Math.random() * b.length)];
               let type = t[Math.floor(Math.random() * t.length)];
               let poker = pool === '' || pool === '' ? pool : type + pool;
               arr.indexOf(poker) == -1 ? arr.push(poker) : i--;
           }
           return arr;
       }

       document.write(getRandom(b, t, 3));



</script>


</body>










</html>